home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
cprog.EXE
/
DRIVES2.C
< prev
next >
Wrap
C/C++ Source or Header
|
1996-06-26
|
1KB
|
44 lines
#include <stdio.h>
#include "drivesex.h"
main()
{
int i;
Drives_Exist();
for (i = 0; i < 26; i++)
{
if (drives[i<<2] == DRIVEXISTS)
{
printf("%c: ",i+65);
printf("%s ",drives[(i<<2)+1] == 0 ? "Removable" : "Fixed ");
switch (drives[(i<<2)+2])
{
case LOCALDRV :printf("Local ");
break;
case REMOTEDRV:printf("Remote ");
break;
case SHAREDRV :printf("Shared ");
break;
}
switch (drives[(i<<2)+3])
{
case FLOPPY:printf("Floppy");
break;
case HARD :printf("Hard");
break;
case RAM :printf("RAM");
break;
case SUBST :printf("Subst");
break;
case CDROM :printf("CD-ROM");
break;
}
printf("\n");
}
}
}